package com.todod.base.module.infra.api.basegenerateno;

import com.todod.base.module.infra.service.basegenerateno.BaseGenerateNoService;
import jakarta.annotation.Resource;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RestController;

@RestController // 提供 RESTful API 接口，给 Feign 调用
@Validated
public class BaseGenerateNoApiImpl implements BaseGenerateNoApi{
    @Resource
    private BaseGenerateNoService generateNoService;

    @Override
    public String getBySeqNameAndNum(String seqName, int num) {
        return generateNoService.getSeqByTableAndNum(seqName, num);
    }
}
